package zhishu.iceyyy.com.bxq_2500.adapter;

import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;

import zhishu.iceyyy.com.bxq_2500.R;
import zhishu.iceyyy.com.bxq_2500.base.BaseApplication;
import zhishu.iceyyy.com.bxq_2500.base.Base_Z_Adapter;


/**
 * Created by 他的猫 on 2016/11/21.
 * 消息中心适配器
 */

public class ExpectationWork_Adapter extends Base_Z_Adapter {
    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        ExpectationWork_Adapter.Holder holder = null;
        // 查找控件
        if (null == convertView) {
            convertView = LayoutInflater.from(BaseApplication.getInstance())
                    .inflate(R.layout.tab_item_1_expectationwork, null);
            holder = new ExpectationWork_Adapter.Holder();

//
//            holder.fen = (TextView) convertView
//                    .findViewById(R.id.fen);
//            holder.ri = (TextView) convertView
//                    .findViewById(R.id.ri);
//            holder.pjwd = (TextView) convertView
//                    .findViewById(R.id.pjwd);
//            holder.yc = (LinearLayout) convertView
//                    .findViewById(R.id.yc);

            // 缓存Holder
            convertView.setTag(holder);
        } else {
            holder = (ExpectationWork_Adapter.Holder) convertView.getTag();
        }
//        Log.e("7788",mDataList.size()+"a");
//        Log.e("7788",position+"b");
//        if (mDataList.size()==position+1) {
//            holder.yc.setVisibility(View.GONE);
//        }else {
//            holder.yc.setVisibility(View.VISIBLE);
//        }
//        wz_Bean.DataBean nrowDataeme = (wz_Bean.DataBean) getItem(position);
//
//        holder.tv_smname.setText(nrowDataeme.getTitle());
//        holder.textView13.setText(nrowDataeme.getDate());
//        UILUtils.displayImage(nrowDataeme.getImage(), holder.imageView3);


        return convertView;
    }


    public class Holder {


        TextView fen;
        TextView pjwd;
        TextView ri;
        LinearLayout yc;
    }
}
